#include <iostream>

int main() {
    int k,index=1;
    scanf("%d",&k);
    double Sn=0;
    while(Sn<k){
        Sn=Sn+1.0/index;
        index++;
    }
    printf("%d",index);
    return 0;
}
